import { TypeOrmModuleOptions } from "@nestjs/typeorm";


export const DataBaseConfig= (): TypeOrmModuleOptions => ({
    charset: 'utf8mb4',
    logging: ['error'],
    type: 'mysql',
    host: '127.0.0.1',
    port: 3306,
    username: 'root',
    password: '123456',
    database: '3r',
    synchronize: true,
    autoLoadEntities: true,
});

export const CUSTOM_REPOSITORY_METADATA = 'CUSTOM_REPOSITORY_METADATA';